<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.org/ui">
    <h:form>
        <p:remoteCommand name="excluirCurso" oncomplete="dlgExclusaoCurso.show();" />
        
        <p:confirmDialog widgetVar="dlgExclusaoCurso" header="Exclusão de curso" message="Tem certeza que deseja excluir este curso?">
            <p:commandButton value="Sim" action="#{cursoCtrl.excluirCurso()}" oncomplete="dlgExclusaoCurso.hide();" update=":form-principal" icon="ui-icon-check" />
            <p:commandButton value="Não" type="button" onclick="dlgExclusaoCurso.hide();" icon="ui-icon-close" />
        </p:confirmDialog>
    </h:form>
</ui:composition>